using System;
using System.Xml;

namespace Mehat.San.SanFS
{
	public class SqlLiteDataStoreStrategy : IDataStoreStrategy
	{
		private	string	mUri;
		
		public SqlLiteDataStoreStrategy(XmlNode CfgNode)
		{
			XmlNode	uri = CfgNode.Attributes.GetNamedItem("Uri");
			
			if (uri == null)
				throw new Exception("Missing element 'Uri'");
			mUri = uri.Value;
		}
		
		public void Connect()
		{
			Console.WriteLine("SqlLiteDataStoreStrategy.Connect(): Uri '{0}'", mUri);
		}
		
		public void Disconnect()
		{
		}
		
		public void Reconnect()
		{
		}
	}  // END CLASS
}  // END NAMESPACE
